package com.xinzhi.service.impl;

import com.alipay.api.AlipayApiException;
import com.xinzhi.model.AlipayBean;
import com.xinzhi.service.IPayService;
import com.xinzhi.utils.AlipayUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PayServiceImpl implements IPayService {

    @Override
    public String Buy(AlipayBean alipayBean) throws AlipayApiException {
        return AlipayUtil.connect(alipayBean);
    }
}
